package com.homestead.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author yhb
 * @date 2021-06-10 12:00
 */
@Configuration
public class EsConfig {

    /**
     * data-elasticsearch中与Netty之间产生冲突
     */
    @PostConstruct
    void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }
}
